@charset "utf-8";

@import '../variable';

/**
 * 
 * @Dialog.css
 * @author xinxuzhang 
 * @create 15-06-18
 *
**/

.ui-dialog-container {
  display: none;
  position: fixed;
  left: 0; top: 0;
  height: 100%;
  width: 100%;
  padding: 0;
  background-color: rgba(25,28,34,.88);
  background-image: url(about:blank);
  text-align: center;
  color: $dark;
  font-size: 14px;
  overflow: auto;
  filter: progid:DXImageTransform.Microsoft.gradient(startcolorstr=#CC191c22,endcolorstr=#CC191c22);
  z-index: 19;
}
.ui-dialog-animation {
  -webkit-animation: fadeIn .2s both;
  animation: fadeIn .2s both;
}

:root .ui-dialog-container {
	background-image: none;
	filter: none;
}

/* 多个弹框出现的时候，隐藏后面弹框的背景 */
.ui-dialog-container + .ui-dialog-container {
  -webkit-transition: background-color .2s;
  transition: background-color .2s;
	background-color: transparent;
	filter: none;
}

.ui-dialog-container:after,
.ui-dialog-after {
  content: '';
  display: inline-block;
  width: 0;
  height: 90%;
  vertical-align: middle;
}

.ui-dialog {
  display: inline-block;
  *display: inline; *zoom: 1;
  margin-top: 20px; margin-bottom: 30px;
  text-align: left;
  min-width: 400px;
  border-radius: 2px;
  background-color: $light; 
  vertical-align: middle;
  position: relative;
}

.ui-dialog-animation .ui-dialog {
  -webkit-animation: tinydown .25s;
  animation: tinydown .25s;
}

.ui-dialog-title {
  line-height: 30px;
  padding: 15px 50px 0 25px;
  font-weight: bold;
  font-size: 14px;
  color: $dark;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}

.ui-dialog-close {
  position: absolute;
  top: 18px;
  right: 17px;
  width: 20px;
  height: 20px;
  background: $silver url(#{$urlImage}/Dialog/close.png) no-repeat;
  background: none, none;
  -webkit-transition: fill .2s;
  transition: fill .2s;
  fill: $silver;
  z-index: 1;
}
.ui-dialog-close > svg {
  width: 100%;
  height: 100%;
}
.ui-dialog-close:hover {
  background-color: $dark;
  background-color: rgba(0,0,0,0);
  fill: $dark;
}

.ui-dialog-body {
  min-height: 60px;
  padding: 10px 25px 20px;
  *zoom: 1;
}
.ui-dialog-body:after {
  content: '';
  display: table;
  clear: both;
}
.ui-dialog-footer {
  padding: 0 25px 25px;
  text-align: right;
}


:root .ui-dialog-footer {
  max-height: 40px;
  opacity: 1;
  -webkit-transition: max-height .2s, opacity .2s .1s;
  transition: max-height .2s, opacity .2s .1s; 
  overflow: hidden;
}
:root .ui-dialog-footer:empty {
  max-height: 0;
  opacity: 0;
}

.ui-dialog-footer .ui-button {
  margin-left: 15px;
}
.ui-dialog-footer .ui-button:first-child {
  margin-left: 0;
}


.ui-dialog-alert { }

.ui-dialog-warning {
  background: url(#{$urlImage}/Dialog/warning.png);
  background: url(), none;
}
.ui-dialog-remind {
  background: url(#{$urlImage}/Dialog/remind.png);
  background: url(), none;
}
.ui-dialog-success {
  background: url(#{$urlImage}/Dialog/success.png);
  background: url(), none;
}
.ui-dialog-warning,
.ui-dialog-remind,
.ui-dialog-success {
  max-width: 340px;
  padding: 40px 0 20px 60px;
  background-repeat: no-repeat;
  background-position: 0 30px;
  background-size: 40px 40px;
  font-size: 16px;
  word-wrap: break-word;
  overflow: hidden;
}
.ui-dialog-warning > h6,
.ui-dialog-remind > h6,
.ui-dialog-success > h6 {
	margin-top: -10px;
  margin-bottom: 5px;
}
.ui-dialog-warning > p,
.ui-dialog-remind > p,
.ui-dialog-success > p {
  font-size: 14px;
}

.ui-dialog-confirm {
  
}

.ui-dialog-loading {
  
}

.ui-dialog-loading .ui-dialog-title,
.ui-dialog-loading .ui-dialog-close,
.ui-dialog-loading .ui-dialog-footer {
	visibility: hidden;
}
.ui-loading.ui-dialog-body {
	height: 200px;
  min-width: 400px;
	*position: static;
  overflow: hidden;
}